package com.nmsl.masterdocker.controller;

import com.nmsl.common.core.domain.R;
import com.nmsl.masterdocker.domain.TyPrescriptionInfo;
import com.nmsl.masterdocker.service.ITyPrescriptionInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/masterdocker/tyPrescriptionInfo")
public class TyPrescriptionInfoController {
    @Autowired
    private ITyPrescriptionInfoService tyPrescriptionInfoService;

    @GetMapping("/getTyPrescriptionInfoById")
    public R selectPIById(Long prescriptionInfoId) {
        return R.ok(tyPrescriptionInfoService.selectPIById(prescriptionInfoId));
    }

}
